package tj.eskhata.pos.web.common;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.spring.injection.annot.SpringBean;

import tj.eskhata.pos.domain.PsDoctrans;
import tj.eskhata.pos.services.PosService;
import tj.eskhata.pos.web.BasePage;


public class PrintDoc extends BasePage 
{	
	@SpringBean
	private PosService service;	
		
	public PrintDoc(final PageParameters parameters) {	
	}
	public PrintDoc( PsDoctrans psDoc) {
		if(psDoc.getTypeTrans().equals("1"))
			add( new PrintTrPanel("printpanel", psDoc));
		else
			add( new PrintOutPanel("printpanel", psDoc));
	}
}
